package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 党员论坛评论对象 cpc_bbs_comment
 * 
 * @author ruoyi
 * @date 2021-12-23
 */
public class CpcBbsComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论id */
    private Long commentId;

    /** 被回复的评论id */
    @Excel(name = "被回复的评论id")
    private Long parentCommentId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 帖子id */
    @Excel(name = "帖子id")
    private Long postId;

    /** 评论者用户id */
    @Excel(name = "评论者用户id")
    private Long userId;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date syncTime;

    /** 0为正常1为删除，暂未启用 */
    @Excel(name = "0为正常1为删除，暂未启用")
    private Integer deleteFlag;

    /** 社区id */
    @Excel(name = "社区id")
    private Long communityId;

    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setParentCommentId(Long parentCommentId) 
    {
        this.parentCommentId = parentCommentId;
    }

    public Long getParentCommentId() 
    {
        return parentCommentId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setSyncTime(Date syncTime) 
    {
        this.syncTime = syncTime;
    }

    public Date getSyncTime() 
    {
        return syncTime;
    }
    public void setDeleteFlag(Integer deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Integer getDeleteFlag() 
    {
        return deleteFlag;
    }
    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("parentCommentId", getParentCommentId())
            .append("content", getContent())
            .append("postId", getPostId())
            .append("userId", getUserId())
            .append("syncTime", getSyncTime())
            .append("deleteFlag", getDeleteFlag())
            .append("communityId", getCommunityId())
            .toString();
    }
}
